package com.xhui.vimarket.zkplus.zul.attr.bean.impl;

import java.util.List;

import lombok.Getter;
import lombok.Setter;

import com.xhui.vimarket.zkplus.zul.attr.bean.AttrInst;

/**
 * AttrInstImpl.
 * 
 * @author wuyx
 * @version Revision 1.0.0
 * 
 */
public class AttrInstImpl implements AttrInst {
    
    /**
     * attrInstId.
     */
    @Setter
    @Getter
    private long           attrInstId;
    
    /**
     * attrId.
     */
    @Setter
    @Getter
    private long           attrId;
    
    /**
     * attrName.
     */
    @Setter
    @Getter
    private String         attrName;
    
    /**
     * param1.
     */
    @Setter
    @Getter
    private String         param1;
    
    /**
     * param2.
     */
    @Setter
    @Getter
    private String         param2;
    
    /**
     * mgroupId.
     */
    @Setter
    @Getter
    private int            mgroupId;
    
    /**
     * javaCode.
     */
    @Setter
    @Getter
    private String         javaCode;
    
    /**
     * data.
     */
    @Setter
    @Getter
    private String         op       = "";
    
    /**
     * data.
     */
    @Setter
    @Getter
    private Object         data;
    
    /**
     * param1.
     */
    @Setter
    @Getter
    private String         tmplParam1;
    
    /**
     * param2.
     */
    @Setter
    @Getter
    private String         tmplParam2;
    
    /**
     * tmplDisplayMode.
     */
    @Setter
    @Getter
    private String         tmplDisplayMode;
    
    /**
     * 下级值.
     */
    @Setter
    @Getter
    private List<AttrInst> subAttrInsts;
    
    /**
     * disabled.
     */
    @Setter
    @Getter
    private boolean        disabled = false;
    
    /**
     * effParam.
     */
    @Setter
    @Getter
    private String         effParam;
    /**
     * isNeedCheckRight.
     */
    @Setter
    @Getter
    private boolean        checkRight = false;
    
    /**
     * @see java.lang.Object#toString()
     * @return String
     */
    @Override
    public String toString() {
        return super.toString();
    }
    
    @Override
    public void copyFrom(AttrInst srcAttrInst) {
        this.setAttrId(srcAttrInst.getAttrId());
        this.setAttrInstId(srcAttrInst.getAttrInstId());
        this.setAttrName(srcAttrInst.getAttrName());
        this.setParam1(srcAttrInst.getParam1());
    }
    
}
